﻿using System;
using Kooboo.CMS.Content.Models;
using Kooboo.CMS.Sites.Models;

namespace KB.Subscribers
{
    /// <summary>
    /// The derived subscriber name must be ShcemaName+Subscriber.
    /// Eg: ArticleSubscriber
    /// </summary>
    public abstract class Subscriber
    {
        public virtual void PreAdd(TextContent content) { }
        public virtual void PreUpdate(TextContent content) { }
        public virtual void PreDelete(TextContent content) { }

        public virtual void Add(TextContent content) { }
        public virtual void Update(TextContent content) { }
        public virtual void Delete(TextContent content) { }
        public virtual string SiteName
        {
            get { return null; }
        }
    }
}
